package es.dk.hl.business
{
	import com.adobe.cairngorm.business.ServiceLocator;
	
	import es.dk.hl.vo.PhotoVO;
	
	import mx.rpc.AsyncToken;
	import mx.rpc.IResponder;
	import mx.rpc.http.HTTPService;

	public class PhotoDelegate
	{

		private var responder:IResponder;
		private var service:HTTPService;
				
		public function PhotoDelegate(responder:IResponder)
		{
				this.responder = responder;
				this.service = ServiceLocator.getInstance().getHTTPService( "PhotoRO" );				
		}
		
		public function Photo_Get(photo:PhotoVO):void {		
			var pendingCall:AsyncToken = service.send();
			pendingCall.addResponder( responder );
		}		
	}
}